package com.yoj.common.constant;

/**
 * 用于定义Redis键的前缀常量
 */
public interface RedisKeyConstant {

    // 题目浏览 Key
    String QUESTION_VIEW_KEY = "questions:view";

    // 题目管理 Key
    String QUESTION_MANAGER_KEY = "questions:manager";

    // 提交限制的Redis键前缀
    String LIMIT_KEY_PREFIX = "yoj:commit:limit:";

    // 获取免费接口数量的Redis键前缀
    String CACHE_QUESTION_KEY = "yoj:question:";

    String CACHE_QUESTION_PAGE_KEY = "yoj:question:page";

    String USER_CHANGE_KEY_PREFIX = "api:change:lock:";

}
